package com.mini.game.dbbase;

import java.io.Serializable;

public class WrapEntity<T extends IEntity, ID extends Serializable> {
    private ID id;
    private T t;
    private DBOperate operate;
    private String dataSource;

    public WrapEntity(ID id, T t, String dataSource, DBOperate operate) {
        this.id = id;
        this.t = t;
        this.dataSource = dataSource;
        this.operate = operate;
    }

    public ID getId() {
        return id;
    }

    public void setId(ID id) {
        this.id = id;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    public DBOperate getOperate() {
        return operate;
    }
}
